<?php
/**
 * 首页
 * User: yuanxuncheng
 * Date: 2017/1/2
 * Time: 21:45
 */

namespace app\api\controller;

use app\api\model\page\Home as HomeModel;
use app\library\Error;
use think\Request;

class Index
{

    private $homeModel;

    public function __construct()
    {
        $this->param = Request::instance()->param();
    }

    /**
     * @desc 获取首页数据
     * @return array
     */
    public function home()
    {
        $this->homeModel = new HomeModel();
        return $this->homeModel->excute($this->param);
    }
}
